/**
 * 数据配置中心
 * @module dataSource
 */

const dataSource = {
    importSource: [
        { data: "name", readOnly: false, type: "text" },
        { data: "picture", readOnly: false, type: "text" },
        { data: "price", readOnly: false, type: "numeric" },
        { data: "productLength", readOnly: false, type: "numeric" },
        { data: "productWidth", readOnly: false, type: "numeric" },
        { data: "productHeight", readOnly: false, type: "numeric" },
        { data: "inBoxQuantity", readOnly: false, type: "numeric" },
        { data: "outBoxQuantity", readOnly: false, type: "numeric" },
        { data: "outBoxLength", readOnly: false, type: "numeric" },
        { data: "outBoxWidth", readOnly: false, type: "numeric" },
        { data: "outBoxHeight", readOnly: false, type: "numeric" },
        { data: "netWeight", readOnly: false, type: "numeric" },
        { data: "grossWeight", readOnly: false, type: "numeric" },
        { data: "material", readOnly: false },
        { data: "minOrder", readOnly: false, type: "numeric" },
        { data: "unit", readOnly: false, type: "text" },
        {
            data: "supplier",
            readOnly: false,
            type: "dropdown",
            source: this.supplierSource,
            strict: true
        },
        { data: "remark", readOnly: false, type: "text" }
    ],
    querySource: [
        { data: "code", readOnly: true, type: "text" },
        { data: "name", readOnly: false, type: "text" },
        { data: "picture", readOnly: false, type: "text" },
        { data: "price", readOnly: false, type: "numeric" },
        { data: "productLength", readOnly: false, type: "numeric" },
        { data: "productWidth", readOnly: false, type: "numeric" },
        { data: "productHeight", readOnly: false, type: "numeric" },
        { data: "inBoxQuantity", readOnly: false, type: "numeric" },
        { data: "outBoxQuantity", readOnly: false, type: "numeric" },
        { data: "outBoxLength", readOnly: false, type: "numeric" },
        { data: "outBoxWidth", readOnly: false, type: "numeric" },
        { data: "outBoxHeight", readOnly: false, type: "numeric" },
        { data: "netWeight", readOnly: false, type: "numeric" },
        { data: "grossWeight", readOnly: false, type: "numeric" },
        { data: "material", readOnly: false },
        { data: "minOrder", readOnly: false, type: "numeric" },
        { data: "unit", readOnly: false, type: "text" },
        {
            data: "supplier",
            readOnly: false,
            type: "dropdown",
            source: this.supplierSource,
            strict: true
        },
        { data: "remark", readOnly: false, type: "text" }
    ]
}

export default dataSource;